package algorithms;

import java.util.ArrayList;
import java.util.Comparator;

import base.GenericSearch;
import datastructures.MyNode;

public class BreadthSearch extends GenericSearch  {

	public BreadthSearch(Comparator<MyNode> comp) {
		super(comp);

	}

	@Override
	public void insert(ArrayList<MyNode> nodes) {
		this.openlist.add(nodes);
		
	}

	@Override
	public MyNode investigate() {
		return this.openlist.getFirstNode();
	}

}
